package com.ruoyi.electrical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electrical.mapper.ElectricalEquipmentMapper;
import com.ruoyi.electrical.domain.ElectricalEquipment;
import com.ruoyi.electrical.service.IElectricalEquipmentService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-09
 */
@Service
public class ElectricalEquipmentServiceImpl implements IElectricalEquipmentService 
{
    @Autowired
    private ElectricalEquipmentMapper electricalEquipmentMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param electricalEquipmentId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalEquipment selectElectricalEquipmentByElectricalEquipmentId(Long electricalEquipmentId)
    {
        return electricalEquipmentMapper.selectElectricalEquipmentByElectricalEquipmentId(electricalEquipmentId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param electricalEquipment 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalEquipment> selectElectricalEquipmentList(ElectricalEquipment electricalEquipment)
    {
        return electricalEquipmentMapper.selectElectricalEquipmentList(electricalEquipment);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param electricalEquipment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalEquipment(ElectricalEquipment electricalEquipment)
    {
        return electricalEquipmentMapper.insertElectricalEquipment(electricalEquipment);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param electricalEquipment 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalEquipment(ElectricalEquipment electricalEquipment)
    {
        return electricalEquipmentMapper.updateElectricalEquipment(electricalEquipment);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param electricalEquipmentIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalEquipmentByElectricalEquipmentIds(Long[] electricalEquipmentIds)
    {
        return electricalEquipmentMapper.deleteElectricalEquipmentByElectricalEquipmentIds(electricalEquipmentIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param electricalEquipmentId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalEquipmentByElectricalEquipmentId(Long electricalEquipmentId)
    {
        return electricalEquipmentMapper.deleteElectricalEquipmentByElectricalEquipmentId(electricalEquipmentId);
    }
}
